package com.example.bookmanage.domain.user.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class LoginDTO {

    @NotBlank(message = "用户账号不能为空")
    private String username;

    @NotBlank(message = "用户密码不能为空")
    @Size(min = 6, max = 10, message = "密码长度不能少于6位，不能大于14位")
    private String password;
}
